package jmat.scarider.matchers

import org.specs2.matcher.Matcher
import java.util.Date
import org.specs2.matcher.Expectable

case class beBefore(b : Date) extends Matcher[Date] {
	def apply[S <: Date](s: Expectable[S]) = {
      result(s.value.before(b),
             s.description + " is before " + b,
             s.description + " is not before " + b,
             s)
    }
}